package se.webbzon.boltzmann.minigame.sandbox;

import se.webbzon.oschi01.worldobject.WorldObject;

public abstract class SandBoxObject extends WorldObject implements SandBoxAttachable {
	
	// The position and size of this sand box object
	private double x, y, width, height;
	
	/*============================================================
	Constructors
	============================================================*/

	public SandBoxObject(int registeredMethods, int depth2d) {
		super(registeredMethods, depth2d);
	}
	
	/*============================================================
	Public Methods
	============================================================*/
	
	/** Sets the position of this sand box object. **/
	public void setPosition(double x, double y) {
		this.x = x;
		this.y = y;
	}
	
	/** Returns the x-position of the object. **/
	public double getX() {
		return x;
	}

	/** Returns the y-position of the object. **/
	public double getY() {
		return y;
	}

	/** Returns the width of the object. **/
	public double getWidth() {
		return width;
	}

	/** Returns the height of the object. **/
	public double getHeight() {
		return height;
	}
	
	/*============================================================
	Protected Methods
	============================================================*/
	
	/** Sets the size of this sand box object. **/
	protected void setSize(double width, double height) {
		this.width = width;
		this.height = height;
	}

}
